
#ifndef __ADAPTER_C_CPP_H__
#define __ADAPTER_C_CPP_H__

#include "define.h"

#ifdef __cplusplus
extern "C" {
#endif

void g_timer_set_elapse(xuint16 elapse);
void g_timer_start(void);
void g_timer_refresh(void);
xuint8 g_timer_base(xuint16 b);


typedef enum {FORWARD, REVERSE, FREE_RUN, FAST_STOP, DIRECT_DRIVE} motor_status;
void g_motor_set_status_L(motor_status status);
void g_motor_set_status_R(motor_status status);

motor_status g_motor_get_status_L(void);
motor_status g_motor_get_status_R(void);

void g_motor_set_speed_L(xuint8 speed);
void g_motor_set_speed_R(xuint8 speed);

xuint8 g_motor_get_speed_L(void);
xuint8 g_motor_get_speed_R(void);

#ifdef __cplusplus
}
#endif

#endif